
    <!DOCTYPE html>
    <html lang="zh-CN">
    <head>
      <meta charset="UTF-8">
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <title>负载均衡在系统中决了什么问题？ - 学习卡片</title>
      <style>
        body { font-family: sans-serif; background-color: #f0f8ff; color: #333; display: flex; flex-direction: column; align-items: center; padding: 50px 20px; }
        .header h1 { font-size: 32px; }
        .grid-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; width: 100%; max-width: 1200px; }
        .card-container { perspective: 1200px; cursor: pointer; height: 250px; }
        .card { width: 100%; height: 100%; position: relative; transform-style: preserve-3d; transition: transform 0.7s; border-radius: 16px; box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
        .card-container.flipped .card { transform: rotateY(180deg); }
        .card-face { position: absolute; width: 100%; height: 100%; backface-visibility: hidden; display: flex; flex-direction: column; box-sizing: border-box; border-radius: 16px; background-color: #fff; padding: 24px; }
        .card-back { background-color: #f0fff4; transform: rotateY(180deg); justify-content: space-between; }
        .card-category { font-size: 14px; color: #0052d9; margin-bottom: 8px; font-weight: 500; }
        .card-question { font-size: 20px; font-weight: 500; flex-grow: 1; display: flex; align-items: center; justify-content: center; text-align: center; }
        .card-answer-wrapper { flex-grow: 1; overflow-y: auto; }
        .card-answer { font-size: 15px; line-height: 1.7; }
        .card-footer { font-size: 13px; color: #8a919f; border-top: 1px solid #f0f0f0; padding-top: 16px; margin-top: 16px; }
        .card-source { font-size: 13px; color: #8a919f; border-top: 1px solid #f0f0f0; padding-top: 12px; margin-top: 12px; }
      </style>
    </head>
    <body>
      <div class="header">
        <h1>负载均衡在系统中决了什么问题？ - 学习卡片</h1>
      </div>
      <div class="grid-container">
        
    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">理论</div>
          <div class="card-question">负载均衡技术主要旨在解决哪些核心问题？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">理论</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">负载均衡旨在解决单点故障、性能瓶颈、资源不均衡等问题，通过在多台服务器之间分配流量和负载，从而提高系统的可用性、可靠性、扩展性和用户体验。</div>
          </div>
          <div class="card-source">来源: 文档引言部分</div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">机制</div>
          <div class="card-question">当系统中某一台服务器出现故障时，负载均衡器如何保证服务的连续性？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">机制</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">当某台服务器发生故障时，负载均衡器可以自动检测到该故障，并立即将流量转发到其他仍在正常工作的健康服务器上，从而避免单点故障导致的服务中断，提高系统的可用性和可靠性。</div>
          </div>
          <div class="card-source">来源: 2. 提高系统可用性和可靠性</div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">特性</div>
          <div class="card-question">负载均衡是如何支持系统横向扩展（Horizontal Scaling）以应对不断增长的流量的？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">特性</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">通过使用负载均衡器，可以在系统中方便地增加更多的服务器节点。负载均衡器会将新的流量均匀地分配到这些新增的节点上，从而实现系统的水平扩展，使其能够处理更多的并发请求。</div>
          </div>
          <div class="card-source">来源: 3. 提升系统的扩展性</div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">机制</div>
          <div class="card-question">当服务器集群中出现部分服务器过载而其他服务器空闲的情况时，负载均衡器如何优化资源利用？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">机制</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">负载均衡器通过动态调整流量分配策略，确保所有服务器的负载尽可能均匀。这避免了部分服务器因负载过高而性能下降，同时其他服务器却处于闲置状态，从而提高了整个集群的资源利用率。</div>
          </div>
          <div class="card-source">来源: 4. 优化资源利用率</div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">技术</div>
          <div class="card-question">为了适应不同的业务场景，负载均衡器通常支持哪些类型的分配策略？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">技术</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">负载均衡器提供了多种负载均衡策略以满足不同需求，常见的策略包括基于轮询（Round Robin）、最少连接数（Least Connections）以及加权策略（Weighted）等。</div>
          </div>
          <div class="card-source">来源: 6. 支持不同类型的负载均衡策略</div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">特性</div>
          <div class="card-question">除了基本的流量分发，负载均衡器还具备哪些高级功能来实现灵活的流量管理和控制？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">特性</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">负载均衡器支持多种高级流量管理功能，包括流量限制、会话保持（Session Persistence）和动态路由等，这些功能有助于根据复杂的业务需求实现对流量的精细化控制。</div>
          </div>
          <div class="card-source">来源: 7. 实现灵活的流量管理和控制</div>
        </div>
      </div>
    </div>

      </div>
    </body>
    </html>
